import pygame #@UnresolvedImport

class Nanobot(pygame.sprite.Sprite):
    '''The nanobot class. Currently very empty.
        Will soon have many more methods for interacting
        with the the environment and other nanobots.
    '''
    name = None
    loc = None
    color = (0,0,255)
    
    def __init__(self,name,loc,grid,gridsize):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface([gridsize,gridsize])
        self.image.fill(self.color)
        self.rect = self.image.get_rect()
        self.rect.topleft = loc
        self.name = name
        grid.sprites.append(self)

    def __repr__(self):
        return self.name